<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东的导航条</title>
    <!-- 引入重置样式表 -->
    <link rel="stylesheet" href="./yangshi.css">
    <!-- 引入图标字体 -->
    <link rel="stylesheet" href="../fa/css/all.css">
    <style>
        .clearfix::before,
        .clearfix::after{
            content: "";
            display: table;
            clear: both;
        }
        /* 设置外部容器的样式 */
        .top-bar-wrapper{
            width: 100px;
            background-color: #e3e4e5;
            line-height: 30px;
            border-bottom: 1px solid #ddd;
        }
        /* 设置内部容器的样式 */
        .top-bar{
            width: 1000px;
            /* 设置水平居中 */
            margin: 0 auto;
        }
        /* 设置location */
        .location{
            float: left;
        }
        /* 设置shortcut */
        .shortcut{
            float:right;
        }
        /* 设置li */
        .shortcut li{
            float: left;
        }
    </style>
</head>
<body>
    <!-- 创建外围的容器 -->
    <div class="top-bar-wrapper">
        <!-- 创建内部容器 -->
        <div class="top-bar clearfix">
            <!-- 左侧的菜单 -->
            <div class="location">
                <div class="current-city">
                    <a href="javascript:;">北京</a>
                </div>
            </div>


            <!-- 右侧的菜单 -->
            <ul class="shortcut">
                <li>
                    <a href="javascript:;">你好,请登入</a>
                    <a href="javascript:;">免费注册</a>
                </li>
                <!-- 分割线 -->
                <li class="line"></li>
                <li><a href="javascript:;">我的订单</a></li>

                <li class="line"></li>
                <li>
                    <a href="javascript:;">我的京东</a>
                    <i class="fas fa-angle-down"></i>
                </li>

                <li class="line"></li>
                <li><a href="javascript:;">京东会员</a></li>

                <li class="line"></li>
                <li>
                    <a href="javascript:;">企业采购</a>
                    <i class="fas fa-angle-down"></i>
                </li>

                <li class="line"></li>
                <li>
                    <a href="javascript:;">客服服务</a>
                    <i class="fas fa-angle-down"></i>
                </li>
                <li class="line"></li>
                <li>
                    <a href="javascript:;">网站导航</a>
                    <i class="fas fa-angle-down"></i>
                </li>
                <li class="line"></li>
               <li>
                   <span>手机京东</span>
                </li>
            </ul>
        </div>
    </div>
    
</body>
</html>